<!-- TEMPLATE VERSEMENT RECHERCHER -->

<section id="content">

    <!-- Tableau obligatoire ! Structure du calendrier ! -->
    <table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
        <tr>
            <td id="ds_calclass"></td>
        </tr>
    </table>

    <!-- -->

    <h1 class="article">{#VERSEMENT_RECHERCHER#}</h1>

    <form class="article buttons" name="VersementRechercher" method="post" action="">

        <fieldset class="form-text">
            <label>{#PERSONNE_NO#}</label>
            <input type="text" name="PersonneNo" />
        </fieldset>

        <fieldset>
            <label>{#MOTIF#}</label>
            <select name="Motif">
                <option value="Cotisation">{#COTISATION#}  </option>
                <option value="Donnation"> {#DONNATION#} </option>
                <option value="Adoption provisoire"> {#ADOPTION_PROV#}  </option>
                <option value="Cession"> {#CESSION_PROP#} </option>
                <option value="Pension">{#PENSION#} </option>
                <option value="Restitution">{#RESTITUTION#}</option>
                <option value="Placement">{#PLACEMENT#}</option>
            </select>
        </fieldset>

        <fieldset class="form-text date">
            <label>{#MONTANT#}</label>
            <P>{#ENTRE#}</p>
            <input type="text" name="MontantCHF" />
            <P>{#ET#}</p>
            <input type="text" name="MontantCHF" />
            <P>{#CHF#}</p>
        </fieldset>

        <fieldset class="form-text date">
            <label>{#DATE#}</label>
            <p>{#ENTRE#}</p>
            <input type="text" name="DateVersement" value="{if isset($DateVersement)}{$DateVersement}{/if}" onClick="ds_sh(this);" />
            <p>{#ET#}</p>
            <input type="text" name="DateVersement" value="{if isset($DateVersement)}{$DateVersement}{/if}" onClick="ds_sh(this);" />
        </fieldset>

        <fieldset class="form-actions">
            <input type="submit" name="Rechercher" value="{#RECHERCHER#}">
        </fieldset>        

    </form>

    <h2 class="article">{#RESULTAT_RECHERCHE#}</h2>

    <div id="tableau" class="article">
        <table>
            <tr style="background-color:#FC0">
                {foreach from=entetes item=item}
                    <th>{$item}</th>
                </tr>{/foreach}      
                {foreach from=versements item=versement}
                    <tr style="background: {cycle values="#eeeeee,#d0d0d0"}">
                        {foreach from=versement item=item}
                            <td>{$item}</td>
                        {/foreach}
                    </tr>
                {/foreach}
            </table>           
        </div>
    </section>